package org.gourpg.model.dictionary;


import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;

/**
 * 参数配置实体
 */

public class ParamDetail {
    /**
     * 参数对象名称，主键不能有名字
     */
    private String paramObject;
    /**
     * 参数值
     */
    private String paramValue;
    /**
     * 参数名称
     */
    private String paramName;
    /**
     * 参数说明
     */
    private String paramRemark;
    public ParamDetail() {
    }

    public ParamDetail(String paramObject, String paramValue, String paramName, String paramRemark) {
        this.paramObject = paramObject;
        this.paramValue = paramValue;
        this.paramName = paramName;
        this.paramRemark = paramRemark;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("paramObject", paramObject)
                .add("paramValue", paramValue)
                .add("paramName", paramName)
                .add("paramRemark", paramRemark)
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        ParamDetail that = (ParamDetail) o;
        return Objects.equal(getParamObject(), that.getParamObject()) && Objects.equal(getParamValue(), that.getParamValue()) && Objects.equal(getParamName(), that.getParamName()) && Objects.equal(getParamRemark(), that.getParamRemark());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getParamObject(), getParamValue(), getParamName(), getParamRemark());
    }

    public String getParamObject() {
        return paramObject;
    }

    public void setParamObject(String paramObject) {
        this.paramObject = paramObject;
    }

    public String getParamValue() {
        return paramValue;
    }

    public void setParamValue(String paramValue) {
        this.paramValue = paramValue;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public String getParamRemark() {
        return paramRemark;
    }

    public void setParamRemark(String paramRemark) {
        this.paramRemark = paramRemark;
    }
}
